package com.example.pages;

import static org.junit.Assert.assertTrue;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public abstract class LoginPage extends Page {

	private static final String MyPageFectory = null;

	private static final Class<Page> LoginPage = null;

	@FindBy (xpath = "//form[@id='loginform']/table/tbody/tr/td[2]/input")
	public static WebElement userNameField;
	
	@FindBy (name="password")
	public static WebElement passwordField;
	
	@FindBy (name="submit")
	public static WebElement LoginButton;
	
	@FindBy (id="loginform")
	public static WebElement LoginForm;

	public void userNameField(String username) {
		driver.findElement(By.cssSelector("#username")).clear();
	    driver.findElement(By.cssSelector("#username")).sendKeys("admin");	    
	
	}
	


